<?php
namespace app\common\logic;

use think\Model;

class MyCar extends Model
{
    public function saveChange($data){
        if(is_numeric($data['my_id'])){
            return $this->save($data,[$this->getPk()=>$data['my_id']]);
        }else{
            return $this->save($data);
        }
    }
}